package 实验2;

public class Test {

 public static void main(String[] args) {
  Student stu0 = new Student(1001,"苏俊桐","男","大数据","乒乓球");
  Student stu1 = new Student(1002,"赵陆顺","男");
  System.out.println("老师授课信息Teacher:");
  System.out.println(stu0);
  System.out.println(stu1);
  Teacher tea0 = new Teacher(1111,"王芳", "女");
  System.out.println("学生选课系统信息Student：");
  System.out.println(tea0);
  Course cour0 = new Course(001,"高等数学");
  Course cour1 = new Course(002,"线性代数","主楼2202",tea0);
  Course cour2 = new Course(003,"JAVA");
  stu0.addCourse(cour0);
  stu0.addCourse(cour2);
  stu1.addCourse(cour2);
  stu1.addCourse(cour0);
  stu1.removeCourse(cour2);
  stu0.displayCourse();
  cour0.removeStudent(stu1);
  cour1.displayStudent();
 }
 
}
